import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Http from './service/http'

import axios from 'axios'
Vue.prototype.$axios = axios
axios.defaults.baseURL = '/api'  //关键代码

Vue.config.productionTip = false
//把http挂在到Vue实例上
Vue.prototype.$Http = Http
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
